//
//  ServiceManager.h
//  aloqa
//
//  Created by mkoo sun on 12-8-23.
//  Copyright (c) 2012年 exodus. All rights reserved.
//

#import <Foundation/Foundation.h>


#import "EventService.h"
#import "HttpService.h"
#import "ComponentService.h"
#import "SessionService.h"

enum ServiceType 
{
    SIMPLESTORAGE_SERVICE,
    EVENT_SERVICE,
    HTTP_SERVICE
};

@interface ServiceManager : NSObject
{
    
    SimpleStorageService* storageService;
    EventService* eventService;
    HttpService* httpService;
    
    BOOL debug;
    NSString* releaseName;
    NSString* deviceId;
    NSString* softVer;
    NSString* iosVer;
}

@property BOOL debug;
@property (nonatomic, retain) NSString* releaseName;
@property (nonatomic, retain) NSString* deviceId;
@property (nonatomic, retain) NSString* softVer;
@property (nonatomic, retain) NSString* iosVer;

+(ServiceManager*) getInstance;

-(id) getService:(enum ServiceType) type;

+ (void) onCreate;

+ (void) onDestroy;

@end
